<?php

/**
 * @author lioxca
 * @copyright 2012
 */
    include_once('Models/QuanLyKhoaHoc.php');
    include_once('Models/Khoa.php');
    $nmaquyen = $_SESSION['nmaquyen'];
    $nmaso = $_SESSION['nmaso'];
    //Them thong tin 
    include_once('Models/CanBo.php');
    include_once('Configs/connect.php');
    $ten = $_SESSION['nten'];
    
    $cb = new CanBo();
    $res = $cb->TTCanBo($nmaso);
    
    $kh = new Khoa();
    $kh->setMaSo($nmaso);
    $res_kh = $kh->thongtinKhoa();
    
    $ql = new QuanLyKhoaHoc();
    $ql->setMaQuanLy($nmaso);
    $res_ql = $ql->thongtinQuanLy();
?>
    <link href="Libraries/css/thongtincanhan.css" rel="stylesheet" type="text/css"/>
        <div class="ttcanhan">
            <div class="color">
            <h3>Thông Tin Cá Nhân</h3>
            <?php
                if($nmaquyen == 'CB'){
                    echo null;
                }
                else if($nmaquyen == 'AD'){
                    ?>
                    <div class="cn_row">
          		<span class="left">
                    <p>Mã Số:</p>
                    <p>Tài Khoản:</p>
              </span>
          		<span class="right">
                    <p><?php echo $nmaso;?></p>
                    <p><?php echo $ten; ?></p>
                    
              </span>
            </div>
            <?php
                }
                else if($nmaquyen== 'KH'){
                    ?>
                    <div class="cn_row">
                                <span class="left">
                            <p>Mã Số:</p>
                            <p>Khoa:</p>
                            <p>Email:</p>
                      </span>
                                <span class="right">
                            <p><?php echo $nmaso;?></p>
                            <p><?php echo $ten; ?></p>
                          <?php while($row = mysql_fetch_array($res_kh)){  ?>
                            <p><?php echo $row[2];?></p>
                            <?php
                            }
                            ?>
                      </span>
                    </div>
            <?php
                }
                else {
                    ?>
                    <div class="cn_row">
          		<span class="left">
                    <p>Mã Số:</p>
                    <p>Họ Và Tên:</p>
                    <p>Email:</p>

              </span>
          		<span class="right">
                    <p><?php echo $nmaso;?></p>
                    <p><?php echo $ten; ?></p>
                  <?php while($row = mysql_fetch_array($res_ql)){  ?>
                    <p><?php echo $row[2];?></p>
                    <?php
                    }
                    ?>
              </span>
            </div>
            <?php
                    }
                    ?>
        </div>
        </div>